<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基础表格</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <include file="Index/common_css"/>
    <link href="__PUBLIC__/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <style>
        .page{height:30px;}
        .page a,.pagin span{border:1px solid #ccc;padding:5px;margin-top:10px;clear:both;margin-left:10px;}
        .page span{width:20px;float:left;text-align: center;}
        .page a:hover{color:#f0580c;border-color:#f0580c;}

        .num{color:darkred;margin-right:10px;}
        .download{float:right;}
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>在途订单</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2 m-b-xs">
                            <select class="input-sm form-control input-s-sm inline" name="type">
                                <option value="0" <if condition="$type eq 0">selected</if>>全部</option>
                                <option value="1" <if condition="$type eq 1">selected</if>>SELL</option>
                                <option value="2" <if condition="$type eq 2">selected</if>>BUY</option>
                            </select>
                        </div>
                        <div class="col-sm-4 m-b-xs">
                            时间 ： <input type="text" id="from" value="{$from}" name="from" class="laydate-icon form-control layer-date" style="width:40%;display:inline-block;"> -
                            <input type="text" id="to" value="{$to}" name="to" class="laydate-icon form-control layer-date" style="width:40%;display:inline-block;">
                        </div>
                        <div class="col-sm-4">
                            <div class="input-group">
                                <input type="text" value="{$id}" name="id" placeholder="请输入MT4账号" class="input-sm form-control">
                                <span class="input-group-btn"><button type="button" class="btn btn-sm btn-primary">搜索</button></span>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th></th>
                                <th>订单号</th>
                                <th>账号</th>
                                <th>开仓时间</th>
                                <th>交易类型</th>
                                <th>交易品种</th>
                                <th>交易量</th>
                                <th>开仓价格</th>
                                <th>S / L</th>
                                <th>T / P</th>
                                <!--<th>平仓时间</th>-->
                                <!--<th>关单价格</th>-->
                                <th>手续费</th>
                                <th>库存费</th>
                                <th>获利</th>
                                <th>备注</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="list" id="vo">
                                <tr>
                                    <td><input type="checkbox" class="i-checks" name="input[]"></td>
                                    <td>{$vo.ticket}</td>
                                    <td>{$vo.login}</td>
                                    <td>{$vo.open_time}</td>
                                    <td><if condition="$vo.cmd eq 1">SELL<else/>BUY</if></td>
                                    <td>{$vo.symbol}</td>
                                    <td>{$vo['volume']/100|round=###,2}</td>
                                    <td>{$vo.open_price}</td>
                                    <td>{$vo.sl}</td>
                                    <td>{$vo.tp}</td>
                                    <!--<td>{$vo.close_time}</td>-->
                                    <!--<td>{$vo.close_price}</td>-->
                                    <td>{$vo.commission}</td>
                                    <td>{$vo.swaps}</td>
                                    <td>{$vo.profit|round=###,2}</td>
                                    <td>{$vo.comment}</td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                        <div class="page">{$page}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<include file="Index/common_js"/>
<!-- Peity -->
<script src="__PUBLIC__/admin/js/plugins/peity/jquery.peity.min.js"></script>
<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<!-- iCheck -->
<script src="__PUBLIC__/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/admin/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });

        laydate({
            elem: '#from', /*目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'*/
            event: 'focus', /*响应事件。如果没有传入event，则按照默认的click*/
            //format: 'YYYY-MM-DD hh:mm:ss',
        });
        laydate({
            elem: '#to', /*目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'*/
            event: 'focus' /*响应事件。如果没有传入event，则按照默认的click*/
        });
    });
</script>
</body>
</html>
